package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhc
 * @since 2024-10-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("qing_zb_process_plan")
@ApiModel(value = "QingProcessPlanEntity对象", description = "")
public class QingZbProcessPlanEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("main_id")
    private Long mainId;

    @ApiModelProperty("生产订单号")
    @TableField("production_order_code")
    private String productionOrderCode;

    @ApiModelProperty("计划开始时间")
    @TableField("plan_start_time")
    private LocalDateTime planStartTime;

    @ApiModelProperty("计划结束时间")
    @TableField("plan_end_time")
    private LocalDateTime planEndTime;

    @ApiModelProperty("本次生产数")
    @TableField("current_production_num")
    private Integer currentProductionNum;

    @ApiModelProperty("是否首道")
    @TableField("first_operation")
    private String firstOperation;

    @ApiModelProperty("是否末道")
    @TableField("last_opertion")
    private String lastOpertion;

    @ApiModelProperty("部门编号")
    @TableField("section_code")
    private String sectionCode;

    @ApiModelProperty("部门名称")
    @TableField("section_name")
    private String sectionName;

    @ApiModelProperty("工作中心编号")
    @TableField("work_center_code")
    private String workCenterCode;

    @ApiModelProperty("工作中心名称")
    @TableField("work_center_name")
    private String workCenterName;

    @ApiModelProperty("存货编码")
    @TableField("inv_code")
    private String invCode;

    @ApiModelProperty("存货名称")
    @TableField("inv_name")
    private String invName;

    @ApiModelProperty("规格型号")
    @TableField("inv_type")
    private String invType;

    @ApiModelProperty("计量单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty("工序行号")
    @TableField("process_line_num")
    private Integer processLineNum;

    @ApiModelProperty("工序编号")
    @TableField("process_code")
    private String processCode;

    @ApiModelProperty("工序名称")
    @TableField("process_name")
    private String processName;

    @ApiModelProperty("销售订单号")
    @TableField("sales_order_code")
    private String salesOrderCode;

    @ApiModelProperty("工序计划状态")
    @TableField("process_plan_status")
    private String processPlanStatus;

    @ApiModelProperty("工序计划优先级")
    @TableField("process_plan_priority")
    private String processPlanPriority;

    @ApiModelProperty("设备编号")
    @TableField("equipment_code")
    private String equipmentCode;

    @ApiModelProperty("设备名称")
    @TableField("equipment_name")
    private String equipmentName;

    @ApiModelProperty("设备类型编号")
    @TableField("eq_type_code")
    private String eqTypeCode;

    @ApiModelProperty("设备类型名称")
    @TableField("eq_type_name")
    private String eqTypeName;

    @ApiModelProperty("标准工时")
    @TableField("standard_working_hour")
    private Integer standardWorkingHour;

    @ApiModelProperty("标准人数")
    @TableField("standard_num")
    private Integer standardNum;

    @ApiModelProperty("订单数量")
    @TableField("order_quantity")
    private Integer orderQuantity;

    @ApiModelProperty("转出数")
    @TableField("quantity_tran")
    private Integer quantityTran;

    @ApiModelProperty("可用生产数")
    @TableField("available_production")
    private Integer availableProduction;

    @ApiModelProperty("生产订单行号")
    @TableField("prod_order_line_num")
    private String prodOrderLineNum;

    @ApiModelProperty("生产数")
    @TableField("prod_num")
    private Integer prodNum;

    @ApiModelProperty("良品数")
    @TableField("acceptance_num")
    private Integer acceptanceNum;

    @ApiModelProperty("不良品数")
    @TableField("defective_num")
    private Integer defectiveNum;

    @ApiModelProperty("生产订单Id")
    @TableField("prod_order_id")
    private Integer prodOrderId;


    @ApiModelProperty("累计派工数")
    @TableField("dispatch_num")
    private Integer dispatchNum;

    @ApiModelProperty("可用报废数")
    @TableField("usable_scrap_num")
    private Integer usableScrapNum;

    @ApiModelProperty("可用合格数")
    @TableField("usable_acceptance_num")
    private Integer usableAcceptanceNum;
}
